sfHover = function() 
		  {
		  		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		  		for (var i=0; i<sfEls.length; i++) {
		  			sfEls[i].onmouseover=function() 
		  								 {
		  										this.className+=" sfhover";
		  								 }
		  			sfEls[i].onmouseout=function() 
		  								{
		  										this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		  								}
		  		}
		  }

Init = function ()
	   {	
			if (typeof window.innerWidth != 'undefined') {//navigateurs modernes
					h = window.innerHeight;
					document.getElementById("main").style.minHeight=h+"px";  
	      
			}
			else if (typeof document.documentElement != 'undefined' && 
					 typeof document.documentElement.clientWidth != 'undefined' && 
					 document.documentElement.clientWidth != 0) {//IE
								h= document.documentElement.clientHeight;
								document.getElementById("main").style.minHeight=h+"px";  
	       
								if (document.documentElement && typeof document.documentElement.style.maxHeight=="undefined"){//IE6
										var obj=document.getElementById("main"); 
										obj.style.minHeight=h+"px";
										obj.style.height=h+"px";
										//ajout d'une classe correspondant au type de l'input pour appliquer la feuille de style pour Ie6 
										var aInput = document.getElementsByTagName("input");
										for (var i=0; i<aInput.length; i++) {
												var oInput=aInput[i];
												oInput.className=oInput.className+" "+oInput.type;
												if (oInput.readOnly==true) { //test si readonly=readonly
														oInput.className=oInput.className+" readonly";
												}
										}	
										var aTextArea = document.getElementsByTagName("textarea");
										for (var i=0; i<aTextArea.length; i++) {
												var oInput=aTextArea[i];
												oInput.className=oInput.className+" "+oInput.type;
												if (oInput.readOnly==true) { //test si readonly=readonly
														oInput.className=oInput.className+" readonly";
												}
										}
								}
			}
			
			if (screen.width <= 1152) {
					document.getElementById("main").style.marginRight = '0px'; 
					document.getElementById("main").style.marginLeft = '0px'; 
			}
	   }

function closeParent(Element) 
{
	var obj = Element;
	Element.parentNode.style.display='none';	
}

if (window.addEventListener) { 
		window.addEventListener("load", Init);
} 
else if (window.attachEvent) { 
		// IE 
		window.attachEvent("onload", sfHover);
		window.attachEvent("onload", Init);
}